import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
	logs: []
  },
  mutations: {
	ADD_ERROR_LOG: (state, log) => {
      state.logs.push(log)
    }
  },
  actions: {
	addErrorLog({ commit }, log) {
      commit('ADD_ERROR_LOG', log)
    }
  }
})
